Data processing method and apparatus for passive optical network system, and passive optical network system

ABSTRACT

A data processing method and apparatus for a Passive Optical Network (PON) system and a PON system, the method including: a first partial bandwidth is allocated to a first Optical Network Unit (ONU) within a first time window, the first ONU having completed registration and being in a working state; and a first data frame from the first ONU is received within a time corresponding to the first partial bandwidth, and a second data frame from a second ONU is detected within the first time window, the second ONU having not completed registration.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present disclosure claims priority to Chinese Patent Application No.201811115807.4, filed to the China Patent Office on Sep. 25, 2018, thedisclosure of which is hereby incorporated by reference in its entirety.

TECHNICAL FIELD

The present disclosure relates to the field of Passive Optical Networks(PONs), and more particularly to a data processing method and apparatusfor a PON system, and a PON system.

BACKGROUND

A PON architecture is a point-to-multipoint network architecture. A PONconsist of an Optical Line Terminal (OLT), an Optical Distribute Network(ODN) and Optical Network Units (ONUs). FIG. 1 is a schematic diagram ofa PON architecture according to the related art. As shown in FIG. 1, anOLT may be connected to multiple ONUs through an ODN. The distancesbetween the ONUs and the OLT are different. A PON system can define amaximum distance between ONUs and an OLT and a maximum distancedifference between each ONU and the OLT.

In the PON system, the ONU usually needs to complete a registrationprocess together with the OLT, which may include, but is not limited to:the OLT acquires information of the ONU, and the OLT test a logicaldistance with the ONU. In the registration process of the ONU, since theOLT cannot know the logical distance with the ONU in advance, it cannotdetermine when a registration information frame sent by the ONU canreach the OLT. The registration information frame sent by the ONUreaches the OLT within a time window. A starting time of the time windowis an earliest time when an ONU nearest to the OLT sends theregistration information frame to reach the OLT, and an ending time is alatest time when an ONU farthest from the OLT sends the registrationinformation frame to reach the OLT. Within the time window, if thenormally working ONU which has completed registration sends an uplinkdata frame, the uplink data frame may collision with the registrationinformation frame sent by the ONU which is being registered, so that theuplink data frame sent by the normally working ONU is damaged and cannotbe correctly parsed by the OLT, and transmission data is lost.Therefore, in the existing PON system, within the time window, thenormally working ONU does not send the uplink data frame so as to avoidcollision with the registration information frame sent by theRegistering ONU. FIG. 2 is a schematic diagram of a quiet window used ina PON system according to the related art. As shown in FIG. 2, in theexisting PON system, there are an OLT, an ONU nearest to the OLT, anormally working ONU, a Registering ONU, and an ONU farthest from theOLT, respectively. The time window in which the above normally workingONU sends the uplink data frame may collision with the registrationinformation frame sent by the ONU which is being registered is generallyreferred to as a silent window or quiet window.

In the existing PON system, on the one hand, if the maximum distancedifference between the OLT and the ONU is 20 km, the quiet window is atleast 200 microseconds. If the maximum distance difference between theOLT and the ONU is 10 km, the quiet window is at least 100 microseconds.On the other hand, the existing PON system allows multiple ONUs toregister within the same quiet window, thereby easily causing collisionpossibility of registration information frames sent by the multipleONUs. If the registration information frames sent by the multiple ONUscollision, the OLT cannot parse the registration information frames,thereby easily causing the ONUs to need to resend registrationinformation frames for registration, and therefore the registrationcompletion time of the ONUs may be delayed. In combination with theabove analysis, the registration completion time of the PON system willbe delayed, and as the number of ONUs needing to be registered isincreasing, the registration completion time of the PON system will belonger. In order to achieve rapid registration of the ONUs and improveuser experience, the OLT usually needs to periodically open a quietwindow, so that the ONUs have more registration opportunities.

In addition, in the existing PON system, the open quiet window in theONU registration process brings delay to the data sending of thenormally working ONU. If the working ONU has uplink data to send just atthe beginning of the quiet window, it needs to wait for the end of thequiet window before there is an opportunity to send the uplink data. Itcan be seen therefrom that the delay caused by the uplink data of thenormally working ONU is at least the size of the quiet window, and sincethe quiet window is usually periodically opened, the ONU registrationprocess brings frequent delay to the data sending of the normallyworking ONU.

With the development of mobile services, the PON system has graduallybecome one of the bearer technologies of mobile services, and mobileservices put forward more strict requirements on the transmission delayof a bearer network. For example, the transmission delay requirementcurrently proposed by the industry for bearing the fifth-generationmobile communication technology (5G) forward service by the PON systemis controlled within 100 microseconds. However, from the foregoinganalysis, when the maximum distance difference between the OLT and theONUs in the PON is 10 km, the quiet window in the ONU registrationprocess has brought a delay of at least 100 microseconds to the datasending of the normally working ONU. In the PON system, besides thedelay caused by the quiet window for optical network data transmission,the data transmission delay caused by optical fiber transmission,dynamic bandwidth allocation and the like is also caused. Therefore, itis difficult for the existing PON system to meet the transmission delayrequirements required for mobile services.

SUMMARY

At least some embodiments of the present disclosure provide a dataprocessing method and apparatus for a PON system, and a PON system,which are intended to at least solve the problem that low delayrequirements of bearer mobile services cannot be met due to transmissiondelay of a PON system caused by a quiet window in an ONU registrationprocess of the PON system provided in the related art is solved.

According to an embodiment of the present disclosure, a data processingmethod for a PON system is provided, which may include that:

a first partial bandwidth is allocated to a first ONU within a firsttime window, the first ONU having completed registration and being in aworking state; and a first data frame from the first ONU is receivedwithin a time corresponding to the first partial bandwidth, and a seconddata frame from a second ONU is detected within the first time window,the second ONU having not completed registration.

In an embodiment, the operation that the second data frame from thesecond ONU is detected within the first time window may include that:the second data frame from the second ONU is detected within a secondpartial bandwidth except the first partial bandwidth within the firsttime window.

In an embodiment, the operation that the first data frame from the firstONU is received within the time corresponding to the first time windowmay include that: the first data frame is obtained by utilizingredundancy protection measures taken by the first ONU on the first dataframe.

In an embodiment, the operation that the first data frame from the firstONU is received within the time corresponding to the first time windowmay further include that: when the redundancy protection measures takenby the first ONU on the first data frame are utilized to identify thatthe first data frame is in error, a collision position of the seconddata frame and the first data frame is obtained.

In an embodiment, after the collision position of the second data frameand the first data frame is obtained, the method may further includethat: the first partial bandwidth is allocated within the subsequentfirst time window, the collision position being not contained in thetime corresponding to the first partial bandwidth; and the second dataframe from the second ONU is detected within the first time window, andthe collision position is positioned again.

In an embodiment, the method may further include that: first distanceinformation of the second ONU is acquired.

In an embodiment, after the first distance information of the second ONUis acquired, the method may further include that: a second time windowis opened for the second ONU according to the first distance informationto complete registration of the second ONU, the second time window beingused for acquiring authentication information of the second ONU, andmeasuring second distance information between an OLT and the second ONU.

In an embodiment, the operation that the first partial bandwidth isallocated to the first ONU within the first time window may furtherinclude that: the first ONU is notified to take redundancy protectionmeasures on the first data frame.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures are utilized to identify that the firstdata frame is in error may include that: when detecting that the firstdata frame is in error through a preset coding mode adopted by the firstONU for a payload of the first data frame, the first data frame isrecovered and the collision position is positioned, a damage range of acollision between the second data frame and the first data frame beingwithin an error correction range of a coding redundancy protection blockof the preset coding mode.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures are utilized to identify that the firstdata frame is in error may include that: when detecting the abnormalityof a signal amplitude and/or a signal clock by performing signalamplitude detection and signal clock recovery on a preamble lengthenedby the first ONU, the signal amplitude and/or the signal clock arerecovered, and the collision position is positioned.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures are utilized to identify that the firstdata frame is in error may include that: when an error is detected froma delimitation lengthening changed by the first ONU, at least one partof the delimitation is correctly identified, a position where thedelimitation is in error is obtained, the collision position ispositioned, and a starting position of a payload is obtained.

In an embodiment, before the second data frame from the second ONU isdetected within the first time window, the method may further includethat: a registration request message is sent to the second ONU, theregistration request message being used for notifying the second ONU tosend the second data frame, and the registration request message atleast carrying first authentication information.

In an embodiment, before the registration request message is sent to thesecond ONU, the method may further include that: authenticationinformation of the first ONU and the second ONU is stored so as toinitiate a registration process to the second ONU according to theauthentication information, the authentication information including:identity information of each ONU and/or identity information of an ONUuser.

In an embodiment, the registration request message may further carry adelay duration for instructing the second ONU to send the second dataframe after waiting for the delay duration.

According to another embodiment of the present disclosure, another dataprocessing method for a PON system is also provided, which may includethat:

a first partial bandwidth allocated by an OLT is acquired; and a firstdata frame is sent to the OLT within the first partial bandwidth, and asecond data frame is sent to the OLT when preset conditions are met, thefirst data frame being a service data frame sent by an ONU that hascompleted registration and is in a working state, and the second dataframe being a registration signal frame sent by an ONU that has notcompleted registration.

In an embodiment, before the first data frame is sent to the OLT withinthe first partial bandwidth, the method may further include that: anotification from the OLT that redundancy protection measures are takenon the first data frame is acquired; and redundancy protection measuresare taken on the first data frame.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame may include that: a payload in the firstdata frame is coded by adopting a preset coding mode, a damage range ofthe second data frame being within an error correction range of a codingredundancy protection block of the preset coding mode.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame may include that: a preamble in the firstdata frame is lengthened to obtain a lengthened preamble, the lengthenedpreamble being used for signal amplitude detection and signal clockrecovery when the OLT generates a collision.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame may include that: a delimitation in thefirst data frame is lengthening changed to obtain a lengtheneddelimitation, the lengthening changed delimitation being used foridentifying at least one part of the delimitation when the OLT generatesa collision, and the delimitation being used for identifying a startingposition of the first data frame by the OLT.

In an embodiment, the operation that the second data frame is sent tothe OLT when the preset conditions are met may include one of thefollowing: a second ONU actively sends the second data frame to the OLT;the second ONU sends the second data frame after obtaining aregistration request message sent by the OLT; and the second ONU sendsthe second data frame after obtaining a registration request message anda delay duration sent by the OLT and then waiting for the delayduration.

According to yet another embodiment of the present disclosure, a dataprocessing apparatus for a PON system is provided, which may include:

an allocation module, configured to allocate a first partial bandwidthto a first ONU within a first time window, the first ONU havingcompleted registration and being in a working state; and a processingmodule, configured to receive a first data frame from the first ONUwithin a time corresponding to the first partial bandwidth, and detect asecond data frame from a second ONU within the first time window, thesecond ONU having not completed registration.

In an embodiment, the processing module may be configured to detect thesecond data frame from the second ONU within a second partial bandwidthexcept the first partial bandwidth within the first time window.

In an embodiment, the processing module may be configured to obtain thefirst data frame by utilizing redundancy protection measures taken bythe first ONU on the first data frame.

In an embodiment, the processing module may be further configured toobtain, when the redundancy protection measures taken by the first ONUon the first data frame are utilized to identify that the first dataframe is in error, a collision position of the second data frame and thefirst data frame.

In an embodiment, the apparatus may further include: a positioningmodule, configured to allocate the first partial bandwidth within thesubsequent first time window, the collision position being not containedin the time corresponding to the first partial bandwidth; and detect thesecond data frame from the second ONU within the first time window, andposition the collision position again.

In an embodiment, the apparatus may further include: an acquisitionmodule, configured to acquire first distance information of the secondONU.

In an embodiment, the apparatus may further include: a registrationmodule, configured to open a second time window for the second ONUaccording to the first distance information to complete registration ofthe second ONU, the second time window being used for acquiringauthentication information of the second ONU, and measuring seconddistance information between an OLT and the second ONU.

In an embodiment, the apparatus may further include: a notificationmodule, configured to notify the first ONU to take redundancy protectionmeasures on the first data frame.

In an embodiment, the processing module may be further configured torecover, when detecting that the first data frame is in error through apreset coding mode adopted by the first ONU for a payload of the firstdata frame, the first data frame and position the collision position, adamage range of a collision between the second data frame and the firstdata frame being within an error correction range of a coding redundancyprotection block of the preset coding mode.

In an embodiment, the processing module may be further configured torecover, when detecting the abnormality of a signal amplitude and/or asignal clock by performing signal amplitude detection and signal clockrecovery on a preamble lengthened by the first ONU, the signal amplitudeand/or the signal clock, and position the collision position.

In an embodiment, the processing module may be further configured tocorrectly identify, when an error is detected from a delimitationlengthening changed by the first ONU, at least one part of thedelimitation, obtain a position where the delimitation is in error,position the collision position, and obtain a starting position of apayload.

In an embodiment, the apparatus may further include: a sending module,configured to send a registration request message to the second ONU, theregistration request message being used for notifying the second ONU tosend the second data frame, and the registration request message atleast carrying first authentication information.

In an embodiment, the apparatus may further include: a storage module,configured to store authentication information of the first ONU and thesecond ONU so as to initiate a registration process to the second ONUaccording to the authentication information, the authenticationinformation including: identity information of each ONU and/or identityinformation of an ONU user.

In an embodiment, the registration request message may further carry adelay duration for instructing the second ONU to send the second dataframe after waiting for the delay duration.

According to yet another embodiment of the present disclosure, anotherdata processing apparatus for a PON system is also provided, which mayinclude:

an acquisition module, configured to acquire a first partial bandwidthallocated by an OLT; and a processing module, configured to send a firstdata frame to the OLT within the first partial bandwidth, and send asecond data frame to the OLT when preset conditions are met, the firstdata frame being a service data frame sent by an ONU that has completedregistration and is in a working state, and the second data frame beinga registration signal frame sent by an ONU that has not completedregistration.

In an embodiment, the apparatus may further include: an acquisitionmodule, configured to acquire a notification from the OLT thatredundancy protection measures are taken on the first data frame; and aprotection module, configured to take redundancy protection measures onthe first data frame.

In an embodiment, the protection module may be configured to code apayload in the first data frame by adopting a preset coding mode, adamage range of the second data frame being within an error correctionrange of a coding redundancy protection block of the preset coding mode.

In an embodiment, the protection module may be configured to lengthen apreamble in the first data frame to obtain a lengthened preamble, thelengthened preamble being used for signal amplitude detection and signalclock recovery when the OLT generates a collision.

In an embodiment, the protection module may be configured to lengthenand change a delimitation in the first data frame to obtain a lengtheneddelimitation, the lengthening changed delimitation being used foridentifying at least one part of the delimitation when the OLT generatesa collision, and the delimitation being used for identifying a startingposition of the first data frame by the OLT.

In an embodiment, sending, by the processing module, the second dataframe to the OLT when the preset conditions are met may include one ofthe following: actively sending the second data frame to the OLT;sending the second data frame after obtaining a registration requestmessage sent by the OLT; and sending the second data frame afterobtaining a registration request message and a delay duration sent bythe OLT and then waiting for the delay duration.

According to yet another embodiment of the present disclosure, a PONsystem is also provided, which may include: an OLT and multiple ONUs.The OLT may include: the above data processing apparatus for a PONsystem. At least one of the multiple ONUs may include: the another dataprocessing apparatus for a PON system.

According to yet another embodiment of the present disclosure, a storagemedium is also provided. The storage medium may store a computer programthat is configured to, when run, perform the steps in any one of theabove method embodiments.

According to yet another embodiment of the present application, anelectronic device is also provided. The electronic device may include amemory and a processor. The memory may store a computer program. Theprocessor may be configured to run the computer program to perform thesteps in any one of the above method embodiments.

Through at least some embodiments of the present disclosure, since thefirst ONU may send a data frame in the registration process of thesecond ONU, that is, when the second ONU exists for registration, thefirst ONU may send data so as to fully utilize the bandwidth in thefirst time window. Therefore, the problem that low delay requirements ofbearer mobile services cannot be met due to transmission delay of a PONsystem caused by a quiet window in an ONU registration process of thePON system provided in the related art can be solved, and the effects ofreducing the transmission delay of the PON system and meeting the lowdelay requirements of the bearer mobile services can be achieved.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings described herein are used to provide a furtherunderstanding of the present disclosure, and constitute a part of thepresent application, and the exemplary embodiments of the presentdisclosure and the description thereof are used to explain the presentdisclosure, but do not constitute limitations to the present disclosure.In the drawings:

FIG. 1 is a schematic diagram of a PON architecture according to therelated art;

FIG. 2 is a schematic diagram of a quiet window used in a PON systemaccording to the related art;

FIG. 3 is a flowchart of a data processing method for a PON systemaccording to an embodiment of the present disclosure;

FIG. 4 is a schematic diagram of a process in which a working ONU sendsuplink data and a Registering ONU sends a registration signal accordingto an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of an uplink data frame and a registrationsignal according to an embodiment of the present disclosure;

FIG. 6 is a flowchart of another data processing method for a PON systemaccording to an embodiment of the present disclosure;

FIG. 7 is a structural block diagram of a data processing apparatus fora PON system according to an embodiment of the present disclosure;

FIG. 8 is a structural block diagram of a data processing apparatus fora PON system according to an embodiment of the present disclosure;

FIG. 9 is a structural block diagram of another data processingapparatus for a PON system according to an embodiment of the presentdisclosure; and

FIG. 10 is a structural block diagram of another data processingapparatus for a PON system according to an embodiment of the presentdisclosure.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The present disclosure will be described in detail below with referenceto the drawings in conjunction with the embodiments. It is to be notedthat embodiments in the present application and characteristics in theembodiments may be combined under the condition of no collisions.

It is to be noted that the specification and claims of the presentdisclosure and the terms “first”, “second” and the like in the drawingsare used to distinguish similar objects, and do not need to describe aspecific sequence or a precedence order.

Embodiment One

The method embodiment provided in Embodiment 1 of the presentapplication may be executed in an OLT or an ONU. The OLT or the ONU mayinclude one or more processors (the processor may include but is notlimited to a processing apparatus such as a Micro Controller Unit (MCU)or a Field Programmable Gate Array (FPGA) and a memory for storing data.In an embodiment, the OLT or the ONU may further include a transmissioncomponent for communication functions and an input output component. Ofcourse, it will be understood by those skilled in the art that thestructural description is merely illustrative and does not limit thestructure of the OLT or the ONU. For example, the OLT or the ONU mayalso include more or fewer components than the above structure, or mayhave a different configuration from the above structure.

The memory may be configured to store a computer program, for example, asoftware program of application software and a module, such as acomputer program corresponding to a data processing method for a PONsystem in the embodiment of the present disclosure. The processorexecutes various functional applications and data processing by runningthe computer program stored in the memory, that is, the data processingmethod for a PON system is implemented. The memory may include a highspeed random access memory and may also include a non-volatile memorysuch as one or more magnetic storage apparatuses, a flash memory, orother non-volatile solid state memories. In some examples, the memorymay further include memories remotely located relative to the processor,which may be connected to the OLT or the ONU over a network. Theexamples of such networks include, but are not limited to, the Internet,the Intranet, local area networks, mobile communication networks, andcombinations thereof.

The transmission component is configured to receive or send data via anetwork. The above specific network examples may include a wirelessnetwork provided by a communication provider of the OLT or the ONU. Inone example, the transmission component includes a Network InterfaceController (NIC) for communicating with the Internet wirelessly. Inanother example, the transmission component may be a Radio Frequency(RF) module for communicating with the Internet wirelessly.

A data processing method for a PON system running on an OLT is providedin the present embodiment. FIG. 3 is a flowchart of a data processingmethod for a PON system according to an embodiment of the presentdisclosure. As shown in FIG. 3, the flow includes the following steps.

In step S31, a first partial bandwidth is allocated to a first ONUwithin a first time window, the first ONU having completed registrationand being in a working state.

In order to solve the delay problem caused by a quiet window in an ONUregistration process in a PON system, the embodiment of the presentdisclosure provides a PON system and an ONU registration mechanism so asto reduce the transmission delay of the PON system. It is to be notedthat the present disclosure does not restrict a working ONU (equivalentto the above first ONU) from sending data within the quiet window, andtherefore the embodiment of the present disclosure uses a noisy window(equivalent to the above first time window) to replace the quiet window.A starting time of the noisy window is consistent with a starting timeof the quiet window, and an ending time of the noisy window isconsistent with an ending time of the quiet window. That is, thestarting time of the first time window is an earliest time when a dataframe sent by an ONU nearest to the OLT reaches the OLT, and the endingtime of the first time window is a latest time when a data frame sent byan ONU farthest from the OLT reaches the OLT. The working ONU may senddata within the noisy window.

In step S34, a first data frame from the first ONU is received within atime corresponding to the first partial bandwidth, and a second dataframe from a second ONU is detected within the first time window, thesecond ONU having not completed registration.

With regard to a registration signal (equivalent to the above seconddata frame) sent by a Registering ONU (equivalent to the above secondONU), the OLT detects the registration signal in an idle bandwidth or adata bandwidth. When an ONU or a potential ONU is registered, theRegistering ONU sends a registration signal to reach the OLT within anoisy window. The OLT allocates a partial bandwidth in the noisy windowto the working ONU for sending uplink data, the partial bandwidth beinga data bandwidth. A partial bandwidth is not allocated, which is an idlebandwidth. The working ONU sends uplink data within the allocatedbandwidth obtained in the noisy window, and the Registering ONU sends aregistration signal in the noisy window. The OLT detects theregistration signal within the noisy window.

In an embodiment, the execution body of the above steps may be, but isnot limited to, an OLT or the like.

In an optional implementation manner, the first time window may be alltimes, the first ONU may send a first data frame, and the second ONU maysend a second data frame at any time.

In an optional implementation manner, the second data frame sent by thesecond ONU needs to reach the OLT within a second partial bandwidthexcept the first partial bandwidth within the first time window. Thatis, the first data frame sent by the first ONU and the second data framesent by the second ONU reach the OLT within different bandwidths withinthe first time window, respectively.

In addition, in the PON system formed by the OLT and the multiple ONUs,data sent by different ONUs are allowed to collision at the OLT side,and the OLT can recover the data sent by at least one ONU.

Through the above steps, since the first ONU may send a data frame inthe registration process of the second ONU, that is, when the second ONUexists for registration, the first ONU may send data so as to fullyutilize the bandwidth in the first time window. Therefore, the problemthat low delay requirements of bearer mobile services cannot be met dueto transmission delay of a PON system caused by a quiet window in an ONUregistration process of the PON system provided in the related art canbe solved, and the effects of reducing the transmission delay of the PONsystem and meeting the low delay requirements of the bearer mobileservices can be achieved.

Since the registration signal sent by the Registering ONU may collisionwith a working data frame sent by the working ONU, in a place where theregistration signal collisions with the working data frame, i.e. acollision position, the registration signal may damage the working dataframe to a certain extent, and the working data frame may generate acorresponding error. Therefore, in order to reduce the damage range ofthe registration signal to the working data frame when the collisionoccurs, the registration signal should be as short as possible. Theregistration signal sent by the Registering ONU is a burst signal, whichmay generally include: an optical module ON light-emitting part, aregistration information part, and an optical module OFF light-emittingpart. The optical module ON light-emitting part and the optical moduleOFF light-emitting part are defined in a PON standard. For example, itis specified in the International Telecommunication UnionTelecommunication Standardization Organization (ITU-T) Gigabit PassiveOptical Network (GPON) standard that both the optical module ONlight-emitting part and the optical module OFF light-emitting part ofthe ONU are 12.8 nanoseconds/4 bytes. It is specified in the ITU-T10-Gigabit-capable Symmetric Passive Optical Network (XGS-PON) that boththe optical module ON light-emitting part and the optical module OFFlight-emitting part of the ONU are 25.7 nanoseconds/32 bytes. Inaddition, the optical module ON light-emitting part and the opticalmodule OFF light-emitting part are also relevant to a specificimplementation of an optical module, which may be better or shorter thanthe standard. For example, the optical module ON light-emitting part andthe optical module OFF light-emitting part may reach 5-10 nanoseconds,for a total sum of about 4-7 bytes in the GPON and about 13-25 bytes inthe XGS-PON. As long as the registration information part can bedetected by the OLT, for example, a registration signal at a rate of 10Gbps and having a length of 3 bytes can be detected by the opticalmodule of the OLT. If the OLT is not required to correctly parseregistration information, the registration information part may notcontain preambles, delimitations, etc. Of course, if the registrationinformation part contains contents such as preambles and delimitations,the OLT can correctly parse the registration information, and the OLTcan recover a working data frame damaged by the collision of theregistration signal. In summary, under current standards and realizableconditions, taking the XGS-PON as an example, the registration signal ofthe ONU is 67 bytes in maximum and 16 bytes in minimum. It is to benoted that the registration signal sent by the ONU and the relatedoptical module ON light-emitting part, the optical module OFFlight-emitting part, the registration information part for opticalmodule detection, the relevant standard definition and the specificimplementation in the embodiment of the present disclosure are only usedfor describing the completeness of the solution of the presentdisclosure and do not constitute a limitation on the present disclosure,and the relevant standard definition and the possible variations of thespecific implementation fall within the scope of the present disclosureas long as they are applicable to the present disclosure.

In an embodiment, before the first data frame from the first ONU isreceived within the first partial bandwidth and the second data framefrom the second ONU is detected within the first time window in stepS34, the method may further include the following execution steps.

In step S33, a registration request message is sent to the second ONU,the registration request message being used for notifying the second ONUto send the second data frame, and the registration request message atleast carrying first authentication information.

The OLT side acquires ONU authentication information or anauthentication information library under the OLT. The ONU authenticationinformation (that is, the above first authentication information) mayinclude, but is not limited to: a serial number of an ONU, a MediaAccess Control (MAC) address of an ONU, and registration information(that is, registration ID) of an ONU user. The OLT marks an ONU thatcompletes registration and an ONU that does not complete registration,respectively.

The operation that the OLT initiates registration of the ONU that doesnot complete registration may include that: the OLT sends authenticationinformation and a registration command (equivalent to the aboveregistration request message) of the ONU to the Registering ONU so as tonotify the ONU to send a registration signal. The registration signalmay be designated by the OLT or may be determined by the ONUindependently. Meanwhile, the OLT allocates a partial bandwidth in thenoisy window to the working ONU, and a partial bandwidth is notallocated.

In an embodiment, before the registration request message is sent to thesecond ONU in step S33, the method may further include the followingexecution steps.

In step S32, authentication information of the first ONU and the secondONU is stored so as to initiate a registration process to the second ONUaccording to the authentication information, the authenticationinformation including: identity information of each ONU and/or identityinformation of an ONU user.

In the ONU registration process, the OLT authenticates the ONU. Onlyafter authentication, the ONU can access the OLT. The information forauthenticating the ONU by the OLT includes: identity information of theONU and identity information of the ONU user. The authenticationinformation of the ONU accessing the OLT forms an ONU authenticationinformation library. The ONU authentication information library may bestored in the OLT or in a higher-level system (for example, a PONmanagement system).

The OLT may initiate a registration process for the ONU corresponding toone or more of authentication information according to the ONUauthentication information library so as to control the number ofRegistering ONUs in one noisy window, thereby reducing the probabilityof collision between the registration information and reducing thedamage range for sending data to a working optical network.

In an embodiment, the registration request message further carries adelay duration for instructing the second ONU to send the second dataframe after waiting for the delay duration.

After the Registering ONU is powered on, it waits for the OLT to startthe registration process. If a registration command belonging to the ONUis received, the ONU sends a registration signal to the OLT immediatelyunder the condition that the registration command does not carry thedelay duration, or sends a registration signal to the OLT after waitingfor the delay duration specified by the OLT under the condition that theregistration command carries the delay duration.

FIG. 4 is a schematic diagram of a process in which a working ONU sendsuplink data and a Registering ONU sends a registration signal accordingto an embodiment of the present disclosure. As shown in FIG. 4, an OLTdetects a registration signal in a noisy window, which may include: theOLT detects a registration signal in an idle bandwidth of the noisywindow, calculates a ranging result, or opens a small quiet window foraccurate ranging to the ONU. The OLT detects an error in a data framesent by the working ONU, recovers data sent by the working ONU, predictsthat a position where the error occurs is caused by a registrationsignal sent by the Registering ONU, and roughly positions a logicaldistance of the ONU so as to accurately range a small quiet windowopened by the ONU. The OLT detects a partial registration signal in anidle bandwidth of the noisy window, detects an error in data sent by theworking ONU, recovers the data sent by the working ONU, and then roughlypositions a logical distance of the ONU in combination with the twopieces of information, so as to accurately range a small quiet windowopened by the ONU. The OLT does not detect any registration informationin the noisy window and marks the ONU, the ONU may not startregistration, or the registration signal sent by the ONU is weak anddata sent by the working ONU is not affected, and the OLT initiates theregistration process to the ONU again after adjusting the bandwidthallocation in the noisy window.

The OLT roughly estimates a logical distance between the Registering ONUand the OLT according to the registration signal sent by the RegisteringONU detected in the noisy window, and opens a small quiet window, sothat the Registering ONU sends registration information, the OLTconfirms the identity of the ONU and calculates a ranging result, andthe registration process is completed.

For an ONU which has not detected registration information in the noisywindow, registration may be performed again, and registration may alsobe performed after registration of other ONUs is completed. If theregistration signal sent by the Registering ONU is judged to be weak,measures which may be taken by the OLT include: the OLT adjusts thepositions of the idle bandwidth and the working bandwidth in the noisywindow so that there is a new opportunity to detect the registrationsignal within the idle bandwidth. The OLT generates a random delay andnotifies the Registering ONU to send the registration signal after thedelay so that the OLT has a new opportunity to detect the registrationsignal within the idle bandwidth. If it is judged that the RegisteringONU does not start registration, the OLT may change a registrationstrategy. For example, after waiting for a longer time, registration onthe ONU is initiated to reduce the influence on the working ONU.

In an embodiment, the operation that the first data frame from the firstONU is received within the time corresponding to the first partialbandwidth in step S34 may include the following execution steps.

In step S341, the first data frame is obtained by utilizing redundancyprotection measures taken by the first ONU on the first data frame.

In order to ensure that when data sent by different ONUs collision atthe OLT side, the OLT can recover the data sent by at least one of theONUs, the working ONU needs to take redundancy protection measures on adata frame sent by the working ONU, so that the OLT can recover the datasent by the working ONU according to the redundancy protection measures.

In an embodiment, the operation that the first data frame from the firstONU is received within the time corresponding to the first partialbandwidth in step S34 may further include the following execution steps.

In step S342, when the redundancy protection measures taken by the firstONU on the first data frame are utilized to identify that the first dataframe is in error, a collision position of the second data frame and thefirst data frame is obtained.

In addition to recovering the data sent by the working ONU as far aspossible, the OLT can preliminarily position an actual position wherethe collision occurs between the working ONU and the Registering ONUwhen determining that the data frame sent by the working ONU is in errorthrough the redundancy protection measures.

In an embodiment, after the collision position of the second data frameand the first data frame is obtained in step S342, the method mayfurther include the following execution steps.

In step S343, the first partial bandwidth is allocated within thesubsequent first time window, the collision position being not containedin the time corresponding to the first partial bandwidth; and the seconddata frame from the second ONU is detected within the first time window,and the collision position is positioned again.

That is, when the OLT allocates a partial bandwidth to the working ONUwithin the subsequent time window, the bandwidth may not be allocated atthe collision position, so that the collision position may be furtherpositioned/confirmed by repeatedly comparing with the collision positiondetermined previously through subsequent repeated detection.

In an embodiment, the operation that the first partial bandwidth isallocated to the first ONU within the first time window in step S31 mayfurther include the following execution steps.

In step S30, the first ONU is notified to take redundancy protectionmeasures on the first data frame.

If needed, when the OLT allocates the bandwidth in the noisy window forthe working ONU, the working ONU is notified to perform redundancyprotection when sending data. The working ONU receives the bandwidth inthe noisy window allocated by the OLT, and the working ONU needs toperform redundancy protection on data when sending the data in thebandwidth.

In an optional implementation manner, a third partial bandwidth may beallocated to the first ONU in addition to allocating the first partialbandwidth to the first ONU within the first time window. The thirdpartial bandwidth is used for the first ONU to repeatedly send the firstdata frame.

In addition to allocating a normal bandwidth to the working ONU, the OLTalso allocates an additional bandwidth (equivalent to the above thirdpartial bandwidth) in the noisy window, so that the working ONU sendsdata within the normal bandwidth, and repeatedly sends the data sentwithin the normal bandwidth within the additional bandwidth.

After receiving a normal bandwidth and a redundant bandwidth in thenoisy window allocated by the OLT, the working ONU sends data within thenormal bandwidth and repeatedly sends the data sent within the normalbandwidth within the redundant bandwidth. The data is sent within thenormal bandwidth through the working ONU, and the data sent within thenormal bandwidth is repeatedly sent within the additional bandwidth.Therefore, even if one part of the data is damaged by collision, theother part of the data is not damaged by collision, so that the OLT canrecover uplink data from the data which is not damaged by collision.This redundancy protection measure may be used when there are more idlebandwidths in the noisy window.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures taken by the first ONU on the first dataframe are utilized to identify that the first data frame is in error instep S342 may include the following execution steps.

In step S3421, when detecting that the first data frame is in errorthrough a preset coding mode adopted by the first ONU for a payload ofthe first data frame, the first data frame is recovered and thecollision position is positioned, a damage range of a collision betweenthe second data frame and the first data frame being within an errorcorrection range of a coding redundancy protection block of the presetcoding mode.

The working ONU sends data within the allocated bandwidth obtained inthe noisy window, and adopts Forward Error Correction (FEC) and othercodes to perform redundancy protection. The damage range of theregistration signal is within the error correction range of the codingredundancy protection block, the OLT can recover the data damaged bycollision and can position a bit where the error occurs. For example,when the FEC employs Reed-Solomon RS (255, 223), the error correctioncapability of an FEC block is (255−223)/2=16 bytes. Thus, when theregistration signal damage capability does not exceed 16 bytes, the ONUmay take such redundancy protection measures.

The working ONU sends data within the allocated bandwidth obtained inthe noisy window, adopts FEC and other codes to perform redundancyprotection, adopts random interleaving of coding blocks, and dispersesconcentrated errors generated by collision into multiple coding blocks.In the receiving process, the OLT firstly performs de-interleaving ofinterleaved coding blocks, recovers each coding block, respectivelyperforms check and error correction on each coding block, and thenperforms interleaving of the coding blocks so as to judge a positionwhere the error occurs. Taking RS (255, 223) as an example, each FECblock is 255 bytes, and the interleaving order of two FEC blocks is asfollows: a first bit of the first FEC block, a second bit of the secondFEC block, a second bit of the first FEC block, a second bit of thesecond FEC block, . . . a 255th bit of the first FEC block, and a 255thbit of the second FEC block, and a 510-byte FEC interleaved block isformed. When the damage range of the registration signal to the FECinterleaved block is 16 bytes, the damage is dispersed into two FECblocks in the FEC interleaved block, and 8 bytes of each FEC block aredamaged. Of course, interleaving of more FEC blocks may be achieved, andthe interleaving process may be in units of 1 bit or in units ofmultiple bits. The descriptions are omitted herein.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures taken by the first ONU on the first dataframe are utilized to identify that the first data frame is in error instep S342 may include the following execution steps.

In step S3422, when detecting the abnormality of signal amplitude and/ora signal clock by performing signal amplitude detection and signal clockrecovery on a preamble lengthened by the first ONU, the signal amplitudeand/or the signal clock are recovered, and the collision position ispositioned.

The data sent by the working ONU is a burst data frame, and the dataframe further follows fields such as a preamble and delimitation. FIG. 5is a schematic diagram of an uplink data frame and a registration signalaccording to an embodiment of the present disclosure. As shown in FIG.5, the preamble is mainly used for signal amplitude detection and signalclock recovery at an OLT and is usually obtained by repeating a fixedbit sequence. The delimitation is used for the OLT to identify astarting position of the burst data frame and is usually a fixed bitsequence. If the preamble and the delimitation are damaged, the OLT maynot be able to correctly parse an uplink data frame sent by the workingONU, and therefore redundancy protection is also needed for the preambleand the delimitation, including preamble lengthening, delimitationlengthening and changing, etc. As an optional implementation manner, thepreamble is lengthened to twice the original preamble plus the length ofa registration signal, the registration signal occurring at any positionof the lengthened preamble. The OLT can finish signal amplitudedetection and signal clock recovery in the lengthened preamble, and theOLT can roughly judge the collision position of the register signal bycombining information such as a time point when an uplink data framesignal is detected, a time point when the signal clock recovery iscompleted, and information that the position of the delimitation isobtained. As an optional implementation manner, the OLT performsmultiple signal amplitude detections at the front of the lengthenedpreamble and selects signal amplitude with a higher confidence level forsubsequent signals. As an optional implementation manner, the OLT locksthe signal amplitude for a longer period of time after the lengthenedpreamble completes the signal amplitude detection.

In an embodiment, the operation that the collision position of thesecond data frame and the first data frame is obtained when theredundancy protection measures taken by the first ONU on the first dataframe are utilized to identify that the first data frame is in error instep S342 may include the following execution steps.

In step S3423, when an error is detected from a delimitation lengtheningchanged by the first ONU, at least one part of the delimitation iscorrectly identified, a position where the delimitation is in error isobtained, the collision position is positioned, and a starting positionof a payload is obtained.

The working ONU may lengthen and change the original delimitation, nomatter where the collision between the registration signal and thelengthening changed delimitation occurs, the OLT can find at least acorrect part of the lengthening changed delimitation, the collisionposition of the registration signal can be roughly judged according tothe correct part, and the starting position of the payload can beobtained.

The following will be described in connection with one of the followingoptional embodiments in a number of different cases from the point ofview of a registration signal collision with a working data frame andcausing damage:

Case 1: A registration signal sent by the Registering ONU collisionswith an uplink data frame sent by the working ONU, and causes an errorfor a payload in the uplink data frame sent by the working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

After obtaining the allocated bandwidth in the noisy window, the workingONU constructs an uplink data frame matched with the size of theallocated bandwidth. The length of a preamble of the uplink data frameis twice that of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, FEC block interleaving is performed to form afinal uplink data frame, and then the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, processes the preamble to obtain a signal amplitude and arecovered signal clock, continues to receive a subsequent data stream,identifies the lengthening changed delimitation to obtain an uplink dataframe payload, reduces an interleaved FEC block in the uplink data framepayload into an independent FEC block, and performs check and errorcorrection on the independent FEC block to obtain correct FEC data. Iferrors are detected and positioned in multiple independent FEC blocks,the errors in the multiple independent FEC blocks are correlatedaccording to FEC interleaving, the positions where the errors occur inthe uplink data frame sent by the working ONU are positioned, and aRound Trip Time (RTT) of the Registering ONU is estimated according tothe positions where the errors occur and the delay time (if any) whenthe Registering ONU sends the registration information. The OLT opens anaccurate quiet window for the Registering ONU in a subsequent bandwidthallocation process according to the estimated RTT of the RegisteringONU. The Registering ONU may send own authentication information in thequiet window, the OLT may obtain the authentication information of theRegistering ONU in the quiet window and perform ranging on the ONU, andthe ONU is matched with the OLT to further complete the registrationprocess. Here, the quiet window may be either an unallocated idlebandwidth or an idle bandwidth obtained by the OLT through an overallbandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 2: In this optional embodiment, a registration signal sent by theRegistering ONU collisions with an uplink data frame sent by the workingONU, and causes an error for a preamble in the uplink data frame sent bythe working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time. The OLT sends aregistration request to the Registering ONU. The registration requestcontains authentication information of the Registering ONU, for example,a serial number of the Registering ONU or a registration sequence of theONU user. In addition, the registration request may also contain a delaytime required before the Registering ONU sends the registrationinformation. The OLT allocates a partial uplink bandwidth in the noisywindow to the working ONU to meet a bandwidth requirement of the workingONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, FEC block interleaving is performed to form afinal uplink data frame, and then the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

When the OLT receives the uplink data frame sent by the working ONU inthe noisy window and processes the preamble, the following informationis obtained: a position where an uplink data frame signal is detected, aposition where signal amplitude detection is completed, a position wherea signal clock is recovered, a repeated delimitation position, a payloadstarting point and the like. The difference between the positions iscalculated. If one or more of the position differences are larger than anormal position difference, a collision position of the registrationsignal may be roughly estimated, an RTT of the Registering ONU isestimated according to a delay time (if any) when the Registering ONUsends the registration information. a subsequent data stream iscontinuously received, an uplink data frame payload is obtained after arepeated delimitation is identified, an interleaved FEC block in theuplink data frame payload is reduced into an independent FEC block, andcheck and error correction are performed on the independent FEC block toobtain correct FEC data. The OLT opens an accurate quiet window for theRegistering ONU in a subsequent bandwidth allocation process accordingto the estimated RTT of the Registering ONU. The Registering ONU maysend own authentication information in the quiet window. The OLT mayobtain the authentication information of the Registering ONU in thequiet window and perform ranging on the ONU. The ONU is matched with theOLT to further complete the registration process. Here, the quiet windowmay be either an unallocated idle bandwidth or an idle bandwidthobtained by the OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 3: In this optional embodiment, a registration signal sent by theRegistering ONU collisions with an uplink data frame sent by the workingONU, and causes an error for a delimitation in the uplink data framesent by the working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, processes the preamble to obtain a signal amplitude and arecovered signal clock, identifies at least one correct part in thelengthening changed delimitation, judges a position where a collisionerror occurs between the lengthening changed delimitation and theregistration signal according to the correct part, estimates an RTT ofthe Registering ONU according to the position where the error occurs anda delay time (if any) when the Registering ONU sends the registrationinformation, obtains an uplink data frame payload, reduces aninterleaved FEC block in the uplink data frame payload into anindependent FEC block, and performs check and error correction on theindependent FEC block. The OLT opens an accurate quiet window for theRegistering ONU in a subsequent bandwidth allocation process accordingto the estimated RTT of the Registering ONU. The Registering ONU maysend own authentication information in the quiet window. The OLT mayobtain the authentication information of the Registering ONU in thequiet window and perform ranging on the ONU, and the ONU is matched withthe OLT to further complete the registration process. Here, the quietwindow may be either an unallocated idle bandwidth or an idle bandwidthobtained by the OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 4: In this optional embodiment, a registration signal sent by theRegistering ONU partially is at an idle bandwidth and partiallycollisions with an uplink data frame sent by the working ONU, and causesan error for a preamble in the uplink data frame sent by the workingONU.

To simplify the description, in this optional embodiment, the ONUauthentication information base is stored in the OLT. The OLT initiatesa registration process for the ONUs corresponding to the authenticationinformation in the ONU authentication information library one by one,and initiates a registration process for one of the ONUs which does notcomplete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, and detects registration signals in an idle bandwidthbefore the uplink data frame. If the registration signals are detectedin the preamble of the uplink data frame, a position where theregistration signal collisions is estimated according to one or two ofthe registration signals, and an RTT of the Registering ONU is estimatedaccording to a delay time (if any) when the Registering ONU sends theregistration information. The OLT completes signal amplitude detectionand signal clock recovery, identifies a repeated delimitation to obtainan uplink data frame payload, reduces an interleaved FEC block in theuplink data frame payload into an independent FEC block, and performscheck and error correction on the independent FEC block to obtaincorrect FEC data. The OLT opens an accurate quiet window for theRegistering ONU in a subsequent bandwidth allocation process accordingto the estimated RTT of the Registering ONU. The Registering ONU maysend own authentication information in the quiet window. The OLT mayobtain the authentication information of the Registering ONU in thequiet window and perform ranging on the ONU, and the ONU is matched withthe OLT to further complete the registration process. Here, the quietwindow may be either an unallocated idle bandwidth or an idle bandwidthobtained by the OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 5: In this optional embodiment, a registration signal sent by theRegistering ONU collisions with an uplink data frame sent by the workingONU, and causes errors for a preamble and a repeated delimitation in theuplink data frame sent by the working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information base is stored in the OLT. The OLT initiatesa registration process for the ONUs corresponding to the authenticationinformation in the ONU authentication information library one by one,and initiates a registration process for one of the ONUs which does notcomplete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, processes the preamble to obtain a signal amplitude and arecovered signal clock, detects a position where the partial preamble isnot consistent with a fixed bit sequence, identifies at least onecorrect part in the lengthening changed delimitation, detects a positionwhere an error occurs in the lengthening changed delimitation, roughlyestimates a position where a collision error occurs in the registrationsignal according to one or two of the positions, estimates an RTT of theRegistering ONU according to the position where the error occurs and adelay time (if any) when the Registering ONU sends the registrationinformation, obtains an uplink data frame payload, reduces aninterleaved FEC block in the uplink data frame payload into anindependent FEC block, and performs check and error correction on theindependent FEC block. The OLT opens an accurate quiet window for theRegistering ONU in a subsequent bandwidth allocation process accordingto the estimated RTT of the Registering ONU. The Registering ONU maysend own authentication information in the quiet window. The OLT mayobtain the authentication information of the Registering ONU in thequiet window and perform ranging on the ONU. The ONU is matched with theOLT to further complete the registration process. Here, the quiet windowmay be either an unallocated idle bandwidth or an idle bandwidthobtained by the OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 6: In this optional embodiment, a registration signal sent by theRegistering ONU collisions with an uplink data frame sent by the workingONU, and causes errors for a repeated delimitation and a payload in theuplink data frame sent by the working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information base is stored in the OLT. The OLT initiatesa registration process for the ONUs corresponding to the authenticationinformation in the ONU authentication information library one by one,and initiates a registration process for one of the ONUs which does notcomplete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, processes the preamble to obtain a signal amplitude and arecovered signal clock, identifies at least one correct part in thefront of the lengthening changed delimitation and calculates an uplinkdata frame payload, roughly estimates a position collisioning with theregistration information according to a position where an error occursin the lengthening changed delimitation, obtains the uplink data framepayload, reduces an interleaved FEC block in the uplink data framepayload into an independent FEC block, and performs check and errorcorrection on the independent FEC block to obtain correct FEC data. Iferrors are detected and positioned in multiple independent FEC blocks,the errors in the multiple independent FEC blocks are correlated, thepositions where the errors occur in the uplink data frame sent by theworking ONU are positioned, and an RTT of the Registering ONU isestimated according to at least one of a registration signal positionobtained by estimating the repeated delimitation and a position where anerror occurs in the payload, and a delay time (if any) when theRegistering ONU sends the registration information. The OLT opens anaccurate quiet window for the Registering ONU in a subsequent bandwidthallocation process according to the estimated RTT of the RegisteringONU. The Registering ONU may send own authentication information in thequiet window. The OLT may obtain the authentication information of theRegistering ONU in the quiet window and perform ranging on the ONU, andthe ONU is matched with the OLT to further complete the registrationprocess. Here, the quiet window may be either an unallocated idlebandwidth or an idle bandwidth obtained by the OLT through an overallbandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Case 7: In this optional embodiment, a registration signal sent by theRegistering ONU partially collisions with an uplink data frame sent bythe working ONU and causes an error for a payload in the uplink dataframe sent by the working ONU, and partially is in an idle bandwidth.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, processes the preamble to obtain a signal amplitude and arecovered signal clock, identifies the lengthening changed delimitationto obtain an uplink data frame payload, reduces an interleaved FEC blockin the uplink data frame payload into an independent FEC block, andperforms check and error correction on the independent FEC block toobtain correct FEC data. If errors are detected and positioned inmultiple independent FEC blocks, the errors in the multiple independentFEC blocks are correlated, and the positions where the errors occur inthe uplink data frame sent by the working ONU are positioned.Registration information is detected within an idle bandwidth after theuplink data frame. An RTT of the Registering ONU is estimated accordingto the positions where the errors occur in FEC block interweaving and adelay time (if any) when the Registering ONU sends the registrationinformation. The OLT opens an accurate quiet window for the RegisteringONU in a subsequent bandwidth allocation process according to theestimated RTT of the Registering ONU. The Registering ONU may send ownauthentication information in the quiet window. The OLT may obtain theauthentication information of the Registering ONU in the quiet windowand perform ranging on the ONU, and the ONU is matched with the OLT tofurther complete the registration process. Here, the quiet window may beeither an unallocated idle bandwidth or an idle bandwidth obtained bythe OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Further, in another optional embodiment of the present disclosure, inorder to simplify the ONU registration mechanism, if an error occurs inan uplink data frame, only error correction is performed, the positionof a collision signal is not judged, and the registration signal isdetected only within an idle bandwidth. If the registration signalcannot be detected in the idle bandwidth, the bandwidth allocation inthe noisy window is adjusted to enable the ONU to perform registrationagain.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the size of the allocatedbandwidth. The length of a preamble of the uplink data frame is twicethat of a preamble of a normal data frame plus the length of aregistration signal, and a delimitation of the uplink data frame islengthening changed from a normal delimitation. The delimitation lengthis at least one original delimitation length larger than that of theregistration signal. FEC check is added to a payload after the uplinkdata frame is delimited, and FEC block interleaving is performed to forma final uplink data frame, so that the uplink data frame is sent withinthe allocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, performs fault tolerance and error correction processingon the lengthened preamble to obtain a signal amplitude and a recoveredsignal clock, identifies a partial or entire repeated delimitation afterperforming fault tolerance and error correction processing on thelengthening changed delimitation to obtain an uplink data frame payload,reduces an interleaved FEC block in the uplink data frame payload intoan independent FEC block, and performs check and error correction on theindependent FEC block to obtain correct FEC data.

The OLT detects a registration signal within the idle bandwidth of thenoisy window and estimates the position of the registration signalwithin the idle bandwidth. For example, the optical module outputs asignal detection prompt within the idle bandwidth of the noisy window.The OLT estimates a logical distance between the Registering ONU and theOLT according to the position of the signal detection prompt and a delaytime (if any) when the Registering ONU sends the registrationinformation. The OLT opens an accurate quiet window for the RegisteringONU in a subsequent bandwidth allocation process according to theestimated RTT of the Registering ONU. The Registering ONU may send ownauthentication information in the quiet window. The OLT may obtain theauthentication information of the Registering ONU in the quiet windowand perform ranging on the ONU, and the ONU is matched with the OLT tofurther complete the registration process. Here, the quiet window may beeither an unallocated idle bandwidth or an idle bandwidth obtained bythe OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

Further, in yet another optional embodiment of the present disclosure,if an error occurs in an uplink data frame, error correction isperformed, the position of a collision signal is judged according to theerror correction position, and the registration signal is also detectedwithin an idle bandwidth. If the registration signals cannot be detectedin the idle bandwidth and the uplink data frame, the bandwidthallocation in the noisy window is adjusted to enable the ONU to performregistration again.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time. The OLT sends aregistration request to the Registering ONU. The registration requestcontains authentication information of the Registering ONU, for example,a serial number of the Registering ONU or a registration sequence of theONU user. In addition, the registration request may also contain a delaytime required before the Registering ONU sends the registrationinformation. The OLT allocates a partial uplink bandwidth in the noisywindow to the working ONU to meet a bandwidth requirement of the workingONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the allocated bandwidth insize. The length of a preamble of the uplink data frame is twice that ofa preamble of a normal data frame plus the length of a registrationsignal, and a delimitation of the uplink data frame is lengtheningchanged from a normal delimitation. The delimitation length is at leastone original delimitation length larger than that of the registrationsignal. FEC check is added to a payload after the uplink data frame isdelimited, and FEC block interleaving is performed to form a finaluplink data frame, so that the uplink data frame is sent within theallocated bandwidth in the noisy window.

The OLT receives the uplink data frame sent by the working ONU in thenoisy window, performs fault tolerance and error correction processingon the lengthened preamble to obtain a signal amplitude and a recoveredsignal clock, obtains a registration signal position if the lengthenedpreamble is subjected to error correction processing, performs faulttolerance and error correction processing on the lengthening changeddelimitation, and then identifies the lengthening changed delimitation.If the registration signal position is obtained after performing errorcorrection processing on the lengthening changed delimitation, an uplinkdata frame payload is obtained according to the lengthening changeddelimitation, an interleaved FEC block in the uplink data frame payloadis reduced into an independent FEC block, and check and error correctionare performed on the independent FEC block to obtain correct FEC data.If multiple FEC blocks are subjected to error correction processing, aregistration signal position is obtained according to the errorcorrection processing. Then, an RTT of the Registering ONU is estimatedaccording to the positions where the errors occur and a delay time (ifany) when the Registering ONU sends the registration information bycombining the registration signal position obtained by the errorcorrection processing of the lengthened preamble, the error correctionprocessing of the lengthening changed delimitation and the errorcorrection processing of the payload. The OLT opens an accurate quietwindow for the Registering ONU in a subsequent bandwidth allocationprocess according to the estimated RTT of the Registering ONU. TheRegistering ONU may send own authentication information in the quietwindow. The OLT may obtain the authentication information of theRegistering ONU in the quiet window and perform ranging on the ONU, andthe ONU is matched with the OLT to further complete the registrationprocess. Here, the quiet window may be either an unallocated idlebandwidth or an idle bandwidth obtained by the OLT through an overallbandwidth allocation algorithm.

The OLT detects a registration signal within the idle bandwidth of thenoisy window and estimates the position of the registration signalwithin the idle bandwidth. For example, the optical module outputs asignal detection prompt within the idle bandwidth of the noisy window.The OLT estimates a logical distance between the Registering ONU and theOLT according to the position of the signal detection prompt and a delaytime (if any) when the Registering ONU sends the registrationinformation. The OLT opens an accurate quiet window for the RegisteringONU in a subsequent bandwidth allocation process according to theestimated RTT of the Registering ONU. The Registering ONU may send ownauthentication information in the quiet window. The OLT may obtain theauthentication information of the Registering ONU in the quiet windowand perform ranging on the ONU, and the ONU is matched with the OLT tofurther complete the registration process. Here, the quiet window may beeither an unallocated idle bandwidth or an idle bandwidth obtained bythe OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

In an embodiment, the method may further include the following executionsteps.

In step S35, first distance information of the second ONU is acquired.

In an embodiment, after the first distance information of the second ONUis acquired in step S35, the method may further include the followingexecution steps.

In step S36, a second time window is opened for the second ONU accordingto the first distance information to complete registration of the secondONU, the second time window being used for acquiring authenticationinformation of the second ONU, and measuring second distance informationbetween an OLT and the second ONU.

The working ONU sends data in the allocated bandwidth obtained in thenoisy window, which may be damaged by collision with a registrationsignal sent by the Registering ONU. Therefore, the working ONU needsredundancy protection for sending data in the noisy window, so that theOLT can recover the data even if the data is damaged by collision.

When the registration signal sent by the Registering ONU conflicts withthe uplink data sent by the working ONU, the OLT recovers the collisionuplink data sent by the working ONU through redundancy protectionmeasures, positions a collision position and preliminarily obtains anRTT of the ONU. The OLT opens a small quiet window (equivalent to theabove second time window) for the Registering ONU according to initialdistance information (that is, the above first distance information)determined by the RTT, acquires Registering ONU information and performsaccurate ranging so as to acquire accurate distance information (thatis, the above second distance information) between the OLT and thesecond ONU. After receiving an accurate ranging command of the OLT, theRegistering ONU sends own authentication information to the OLT.

In addition, when the registration signal sent by the Registering ONU iscompletely within an unallocated bandwidth in the noisy window, the OLTdetects the registration signal and preliminarily obtains an RTT of theONU. The OLT opens a small quiet window (equivalent to the above secondtime window) for the Registering ONU according to initial distanceinformation (that is, the above first distance information) determinedby the RTT, acquires Registering ONU information and performs accurateranging so as to acquire accurate distance information (that is, theabove second distance information) between the OLT and the second ONU.After receiving an accurate ranging command of the OLT, the RegisteringONU sends own authentication information to the OLT.

A registration signal reaching the OLT in an idle bandwidth will bedescribed in further detail below in connection with an optionalembodiment.

In this optional embodiment, the registration signal reaches the OLT inthe idle bandwidth. The registration signal sent by the Registering ONUreaches the OLT within the idle bandwidth in the noisy window and doesnot collision with the uplink data frame sent by the working ONU.

To simplify the description, in this optional embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. In addition, the registrationrequest may also contain a delay time required before the RegisteringONU sends the registration information. The OLT allocates a partialuplink bandwidth in the noisy window to the working ONU to meet abandwidth requirement of the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the allocated bandwidth insize. The length of a preamble of the uplink data frame is twice that ofa preamble of a normal data frame plus the length of a registrationsignal, and a delimitation of the uplink data frame is lengtheningchanged from a normal delimitation. The delimitation length is at leastone original delimitation length larger than that of the registrationsignal. FEC check is added to a payload after the uplink data frame isdelimited, and FEC block interleaving is performed to form a finaluplink data frame, so that the uplink data frame is sent within theallocated bandwidth in the noisy window.

The OLT detects a registration signal within the idle bandwidth of thenoisy window and estimates the position of the registration signalwithin the idle bandwidth. For example, the optical module outputs asignal detection prompt within the idle bandwidth of the noisy window.The OLT estimates a logical distance between the Registering ONU and theOLT according to the position of the signal detection prompt and a delaytime (if any) when the Registering ONU sends the registrationinformation. The OLT opens an accurate quiet window for the RegisteringONU in a subsequent bandwidth allocation process according to theestimated RTT of the Registering ONU. The Registering ONU may send ownauthentication information in the quiet window. The OLT may obtain theauthentication information of the Registering ONU in the quiet windowand perform ranging on the ONU, and the ONU is matched with the OLT tofurther complete the registration process. Here, the quiet window may beeither an unallocated idle bandwidth or an idle bandwidth obtained bythe OLT through an overall bandwidth allocation algorithm.

The OLT may register other ONUs which do not complete registration asrequired.

In an optional embodiment of the present disclosure, when the OLT doesnot detect the registration signal sent by the Registering ONU, the OLTmay adjust the bandwidth allocated to the working ONU and theunallocated uplink bandwidth in the noisy window so that the RegisteringONU sends the registration signal again or the OLT enables theRegistering ONU to perform random delay and then sends the registrationsignal, or the OLT suspends the registration of the ONU and starts theregistration of the ONU again after registration of other ONUs, or theOLT starts registration of the ONU again after waiting for a period oftime.

The situation that the OLT does not detect a registration signal will bedescribed in further detail below in various cases in combination withan optional embodiment.

Case 1: A registration signal overlaps a working data frame, but doesnot affect the working data frame

In this optional embodiment, a registration signal sent by theRegistering ONU overlaps an uplink data frame sent by the working ONU,but does not affect the uplink data frame sent by the working ONU.

To simplify the description, in the present embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. The registration request mayalso contain a delay time required before the Registering ONU sends theregistration information. The OLT allocates a partial uplink bandwidthin the noisy window to the working ONU to meet a bandwidth requirementof the working ONU.

After receiving the registration request sent by the OLT, theRegistering ONU analyzes the ONU authentication information and thedelay time (if the registration request contains the information)therein so as to judge whether the authentication information of theRegistering ONU is consistent with the ONU authentication information inthe registration request. If so, a registration signal is sent to theOLT in response to the registration request either directly or afterwaiting for a specified delay time.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the allocated bandwidth insize. The length of a preamble of the uplink data frame is twice that ofa preamble of a normal data frame plus the length of a registrationsignal, and a delimitation of the uplink data frame is lengtheningchanged from a normal delimitation. The delimitation length is at leastone original delimitation length larger than that of the registrationsignal. FEC check is added to a payload after the uplink data frame isdelimited, FEC block interleaving is performed to form a final uplinkdata frame, and the uplink data frame is sent within the allocatedbandwidth in the noisy window finally.

The registration signal sent by the Registering ONU overlaps with theworking data frame sent by the working ONU, but does not affect theworking data frame. The OLT can correctly parse the working data frameand does not detect errors. The OLT receives the uplink data frame sentby the working ONU in the noisy window, processes the preamble to obtaina signal amplitude and a recovered signal clock, identifies a repeateddelimitation to obtain an uplink data frame payload, reduces aninterleaved FEC block in the uplink data frame payload into anindependent FEC block, and performs check and error correction on theindependent FEC block.

When the Registering ONU is much farther from the OLT than the workingONU, the registration signal is much weaker than the working data framesignal, which may occur in the present embodiment, but this does notlimit the present embodiment and the present disclosure.

The OLT may try to adjust the idle bandwidth position of the noisywindow or modify the delay time and enable the Registering ONU toregister again, or the OLT may suspend registration of the ONU and thenregister the ONU after registration of other ONUs is completed.

Case 2: The ONU does not respond to registration

In this embodiment, the Registering ONU does not send a registrationsignal in response to a registration request of the OLT.

To simplify the description, in the present embodiment, the ONUauthentication information library is stored in the OLT. The OLTinitiates a registration process for the ONUs corresponding to theauthentication information in the ONU authentication information libraryone by one, and initiates a registration process for one of the ONUswhich does not complete registration each time.

The OLT sends a registration request to the Registering ONU. Theregistration request contains authentication information of theRegistering ONU, for example, a serial number of the Registering ONU ora registration sequence of the ONU user. The registration request mayalso contain a delay time required before the Registering ONU sends theregistration information. The OLT allocates a partial uplink bandwidthin the noisy window to the working ONU to meet a bandwidth requirementof the working ONU.

The Registering ONU does not send a registration signal to the OLT, forexample, the Registering ONU is not powered on, or the Registering ONUcannot respond to the OLT during startup, or the Registering ONU worksin an abnormal state, cannot respond to the OLT, etc.

The working ONU obtains the allocated bandwidth in the noisy window, andconstructs an uplink data frame matched with the allocated bandwidth insize. The length of a preamble of the uplink data frame is twice that ofa preamble of a normal data frame plus the length of a registrationsignal, and a delimitation of the uplink data frame is lengtheningchanged from a normal delimitation. The delimitation length is at leastone original delimitation length larger than that of the registrationsignal. FEC check is added to a payload after the uplink data frame isdelimited, FEC block interleaving is performed to form a final uplinkdata frame, and the uplink data frame is sent within the allocatedbandwidth in the noisy window finally.

The OLT can correctly parse the working data frame and does not detecterrors, and the OLT does not detect a registration signal within theidle bandwidth in the noisy window. The OLT receives the uplink dataframe sent by the working ONU in the noisy window, processes thepreamble to obtain a signal amplitude and a recovered signal clock,continues to receive a subsequent data stream, identifies a repeateddelimitation to obtain an uplink data frame payload, reduces aninterleaved FEC block in the uplink data frame payload into anindependent FEC block, and performs check and error correction on theindependent FEC block.

The OLT may try to adjust the idle bandwidth position of the noisywindow or modify the delay time and enable the Registering ONU toregister again, or the OLT may suspend registration of the ONU and thenregister the ONU after registration of other ONUs is completed.

Another data processing method for a PON system running on a working ONUis also provided in the present embodiment. FIG. 6 is a flowchart ofanother data processing method for a PON system according to anembodiment of the present disclosure. As shown in FIG. 6, the flowincludes the following steps.

In step S61, a first partial bandwidth allocated by an OLT is acquired.

In step S64, a first data frame is sent to the OLT within the firstpartial bandwidth, and a second data frame is sent to the OLT whenpreset conditions are met, the first data frame being a service dataframe sent by an ONU that has completed registration and is in a workingstate, and the second data frame being a registration signal frame sentby an ONU that has not completed registration.

In an optional implementation manner, the operation that the second dataframe is sent to the OLT when the preset conditions are met may includebut is not limited to one of the following modes:

Mode 1: A second ONU actively sends the second data frame to the OLT.

Mode 2: The second ONU sends the second data frame after obtaining aregistration request message sent by the OLT.

Mode 3: The second ONU sends the second data frame after obtaining aregistration request message and a delay duration sent by the OLT andthen waiting for the delay duration.

In the PON system provided by the embodiment of the present disclosure,the working ONU may send a data frame in the process of registering theRegistering ONU. The OLT may detect the registration signal sent by theRegistering ONU in the idle bandwidth, may detect the registrationsignal and recover the collision working data when the registrationsignal and the working data conflict, and may roughly estimate distanceinformation between the Registering ONU and the OLT.

In the PON, when there is an ONU in registration, the working ONU maysend data, the bandwidth in the noisy window is fully utilized, thebandwidth utilization rate is improved, the delay caused by the noisywindow in the ONU registration process is reduced or even eliminated,and therefore the transmission delay in the PON system is reduced.

In an embodiment, the execution body of the above steps may be, but isnot limited to, a working ONU or the like.

In an embodiment, before the first data frame is sent to the OLT withinthe first partial bandwidth in step S64, the method may further includethe following execution steps.

In step S62, a notification from the OLT that redundancy protectionmeasures are taken on the first data frame is acquired.

In step S63, redundancy protection measures are taken on the first dataframe.

If needed, when the OLT allocates the bandwidth in the noisy window forthe working ONU, the working ONU is notified to perform redundancyprotection when sending data. The working ONU receives the bandwidth inthe noisy window allocated by the OLT, and the working ONU needs toperform redundancy protection on data when sending the data in thebandwidth.

In an optional implementation manner, in addition to allocating a normalbandwidth to the working ONU, the OLT also allocates an additionalbandwidth in the noisy window, so that the working ONU sends data withinthe normal bandwidth, and repeatedly sends the data sent within thenormal bandwidth within the additional bandwidth.

After receiving a normal bandwidth and a redundant bandwidth in thenoisy window allocated by the OLT, the working ONU sends data within thenormal bandwidth and repeatedly sends the data sent within the normalbandwidth within the redundant bandwidth. The data is sent within thenormal bandwidth through the working ONU, and the data sent within thenormal bandwidth is repeatedly sent within the additional bandwidth.Therefore, even if one part of the data is damaged by collision, theother part of the data is not damaged by collision, so that the OLT canrecover uplink data from the data which is not damaged by collision.This redundancy protection measure may be used when there are more idlebandwidths in the noisy window.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame in step S63 may include the followingexecution steps.

In step S631, a payload in the first data frame is coded by adopting apreset coding mode, a damage range of the second data frame being withinan error correction range of a coding redundancy protection block of thepreset coding mode.

The working ONU sends data within the allocated bandwidth obtained inthe noisy window, and adopts FEC and other codes to perform redundancyprotection. The damage range of the registration signal is within theerror correction range of the coding redundancy protection block, theOLT can recover the data damaged by collision and can position a bitwhere the error occurs. For example, when the FEC employs Reed-SolomonRS (255, 223), the error correction capability of an FEC block is(255−223)/2=16 bytes. Thus, when the registration signal damagecapability does not exceed 16 bytes, the ONU may take such redundancyprotection measures.

The working ONU sends data within the allocated bandwidth obtained inthe noisy window, adopts FEC and other codes to perform redundancyprotection, adopts random interleaving of coding blocks, and dispersesconcentrated errors generated by collision into multiple coding blocks.In the receiving process, the OLT firstly performs de-interleaving ofinterleaved coding blocks, recovers each coding block, respectivelyperforms check and error correction on each coding block, and thenperforms interleaving of the coding blocks so as to judge a positionwhere the error occurs. Taking RS (255, 223) as an example, each FECblock is 255 bytes, and the interleaving order of two FEC blocks is asfollows: a first bit of the first FEC block, a second bit of the secondFEC block, a second bit of the first FEC block, a second bit of thesecond FEC block, . . . a 255th bit of the first FEC block, and a 255thbit of the second FEC block, and a 510-byte FEC interleaved block isformed. When the damage range of the registration signal to the FECinterleaved block is 16 bytes, the damage is dispersed into two FECblocks in the FEC interleaved block, and 8 bytes of each FEC block aredamaged. Of course, interleaving of more FEC blocks may be achieved, andthe interleaving process may be in units of 1 bit or in units ofmultiple bits. The descriptions are omitted herein.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame in step S63 may include the followingexecution steps.

In step S632, a preamble in the first data frame is lengthened to obtaina lengthened preamble, the lengthened preamble being used for signalamplitude detection and signal clock recovery when the OLT generates acollision.

The data sent by the working ONU is a burst data frame, and the dataframe further follows fields such as a preamble and delimitation. Thepreamble is mainly used for signal amplitude detection and signal clockrecovery at an OLT and is usually obtained by repeating a fixed bitsequence. The delimitation is used for the OLT to identify a startingposition of the burst data frame and is usually a fixed bit sequence. Ifthe preamble and the delimitation are damaged, the OLT may not be ableto correctly parse an uplink data frame sent by the working ONU, andtherefore redundancy protection is also needed for the preamble and thedelimitation, including preamble lengthening, delimitation lengtheningand changing, etc. As an optional implementation manner, the preamble islengthened to twice the original preamble plus the length of aregistration signal, the registration signal occurring at any positionof the lengthened preamble. The OLT can finish signal amplitudedetection and signal clock recovery in the lengthened preamble, and theOLT can roughly judge the collision position of the register signal bycombining information such as a time point when an uplink data framesignal is detected, a time point when the signal clock recovery iscompleted, and information that the position of the delimitation isobtained. As an optional implementation manner, the OLT performsmultiple signal amplitude detections at the front of the lengthenedpreamble and selects a signal amplitude with a higher confidence levelfor subsequent signals. As an optional implementation manner, the OLTlocks the signal amplitude for a longer period of time after thelengthened preamble completes the signal amplitude detection.

In an embodiment, the operation that redundancy protection measures aretaken on the first data frame in step S63 may include the followingexecution steps.

In step S633, the delimitation in the first data frame is lengtheningchanged to obtain a lengthened delimitation, the lengthening changeddelimitation being used for identifying at least one part of thedelimitation when the OLT generates a collision, and the delimitationbeing used for identifying a starting position of the first data frameby the OLT.

The working ONU may repeatedly change the original delimitation for manytimes until it is larger than the registration signal by at least oneoriginal delimitation length, no matter where the collision between theregistration signal and the repeated delimitation occurs, the OLT canfind at least one correct part, so that a collision position of theregistration signal can be roughly judged according to the found atleast one correct part.

Through the description of the above implementation manners, thoseskilled in the art can clearly understand that the method according tothe above embodiment may be implemented by means of software plus anecessary general hardware platform, and of course, may also beimplemented through hardware, but in many cases, the former is a betterimplementation manner. Based on such understanding, the technicalsolution of the present disclosure, which is essential or contributes tothe conventional art, may be embodied in the form of a software productstored in a storage medium (such as a ROM/RAM, a magnetic disk and anoptical disc), including a number of instructions for causing a terminaldevice (which may be a mobile phone, a computer, a server, or a networkdevice, etc.) to perform the methods described in various embodiments ofthe present disclosure.

Embodiment Two

In the present embodiment, a data processing apparatus for a PON systemis also provided. The apparatus is used to implement the aboveembodiments and preferred implementation manners, and those have notbeen described will not be elaborated. As used below, the term “module”may implement a combination of software and/or hardware of apredetermined function. Although the apparatus described in thefollowing embodiments is preferably implemented in software, hardware,or a combination of software and hardware, is also possible andcontemplated.

FIG. 7 is a structural block diagram of a data processing apparatus fora PON system according to an embodiment of the present disclosure. Asshown in FIG. 7, the apparatus includes: an allocation module 10,configured to allocate a first partial bandwidth to a first ONU within afirst time window, the first ONU having completed registration and beingin a working state; and a processing module, configured to receive afirst data frame from the first ONU within a time corresponding to thefirst partial bandwidth, and detect a second data frame from a secondONU within the first time window, the second ONU having not completedregistration.

In an embodiment, the processing module 20 is configured to detect thesecond data frame from the second ONU within a second partial bandwidthexcept the first partial bandwidth within the first time window.

In an embodiment, the processing module 20 is configured to obtain thefirst data frame by utilizing redundancy protection measures taken bythe first ONU on the first data frame.

In an embodiment, the processing module 20 is further configured toobtain, when the redundancy protection measures taken by the first ONUon the first data frame are utilized to identify that the first dataframe is in error, a collision position of the second data frame and thefirst data frame.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: a positioning module30, configured to allocate the first partial bandwidth within thesubsequent first time window, the collision position being not containedin the time corresponding to the first partial bandwidth; and detect thesecond data frame from the second ONU within the first time window, andposition the collision position again.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: an acquisition module40, configured to acquire first distance information of the second ONU.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: a registration module50, configured to open a second time window for the second ONU accordingto the first distance information to complete registration of the secondONU, the second time window being used for acquiring authenticationinformation of the second ONU, and measuring second distance informationbetween an OLT and the second ONU.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: a notification module60, configured to notify the first ONU to take redundancy protectionmeasures on the first data frame.

In an embodiment, the processing module 20 is further configured torecover, when detecting that the first data frame is in error through apreset coding mode adopted by the first ONU for a payload of the firstdata frame, the first data frame and position the collision position, adamage range of a collision between the second data frame and the firstdata frame being within an error correction range of a coding redundancyprotection block of the preset coding mode.

In an embodiment, the processing module 20 is further configured torecover, when detecting the abnormality of a signal amplitude and/or asignal clock by performing signal amplitude detection and signal clockrecovery on a preamble lengthened by the first ONU, the signal amplitudeand/or the signal clock, and position the collision position.

In an embodiment, the processing module 20 is further configured tocorrectly identify, when an error is detected from a delimitationlengthening changed by the first ONU, at least one part of thedelimitation, obtain a position where the delimitation is in error,position the collision position, and obtain a starting position of apayload.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: a sending module 70,configured to send a registration request message to the second ONU, theregistration request message being used for notifying the second ONU tosend the second data frame, and the registration request message atleast carrying first authentication information.

In an embodiment, FIG. 8 is a structural block diagram of a dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 8, in addition to all the modulesshown in FIG. 7, the apparatus further includes: a storage module 80,configured to store authentication information of the first ONU and thesecond ONU so as to initiate a registration process to the second ONUaccording to the authentication information, the authenticationinformation including: identity information of each ONU and/or identityinformation of an ONU user.

In an embodiment, the registration request message further carries adelay duration for instructing the second ONU to send the second dataframe after waiting for the delay duration.

FIG. 9 is a structural block diagram of another data processingapparatus for a PON system according to an embodiment of the presentdisclosure. As shown in FIG. 9, the apparatus includes: an acquisitionmodule 90, configured to acquire a first partial bandwidth allocated byan OLT; and a processing module 92, configured to send a first dataframe to the OLT within the first partial bandwidth, and send a seconddata frame to the OLT when preset conditions are met, the first dataframe being a service data frame sent by an ONU that has completedregistration and is in a working state, and the second data frame beinga registration signal frame sent by an ONU that has not completedregistration.

In an embodiment, FIG. 10 is a structural block diagram of another dataprocessing apparatus for a PON system according to an embodiment of thepresent disclosure. As shown in FIG. 10, in addition to all the modulesshown in FIG. 9, the apparatus further includes: an acquisition module94, configured to acquire a notification from the OLT that redundancyprotection measures are taken on the first data frame; and a protectionmodule 96, configured to take redundancy protection measures on thefirst data frame.

In an embodiment, the protection module 96 is configured to code apayload in the first data frame by adopting a preset coding mode, adamage range of the second data frame being within an error correctionrange of a coding redundancy protection block of the preset coding mode.

In an embodiment, the protection module 96 is configured to lengthen apreamble in the first data frame to obtain a lengthened preamble, thelengthened preamble being used for signal amplitude detection and signalclock recovery when the OLT generates a collision.

In an embodiment, the protection module 96 is configured to lengthen andchange a delimitation in the first data frame to obtain a lengtheneddelimitation, the lengthening changed delimitation being used foridentifying at least one part of the delimitation when the OLT generatesa collision, and the delimitation being used for identifying a startingposition of the first data frame by the OLT.

In an embodiment, sending, by the processing module 92, the second dataframe to the OLT when the preset conditions are met includes one of thefollowing: actively sending the second data frame to the OLT; sendingthe second data frame after obtaining a registration request messagesent by the OLT; and sending the second data frame after obtaining aregistration request message and a delay duration sent by the OLT andthen waiting for the delay duration.

It is to be noted that each of the above modules may be implemented bysoftware or hardware. For the latter, it may be implemented by, but notlimited to, the following manners that the above modules are all locatedin the same processor; or, the above modules are located in differentprocessors in any combination form respectively.

Embodiment Three

The embodiment of the present disclosure also provides a storage medium.The storage medium stores a computer program that is configured to, whenrun, perform the steps in any one of the above method embodiments.

In an embodiment, in the present embodiment, the storage medium may beconfigured to store a computer program for performing the followingsteps.

In step S1, a first partial bandwidth is allocated to a first ONU withina first time window, the first ONU having completed registration andbeing in a working state.

In step S2, a first data frame from the first ONU is received within atime corresponding to the first partial bandwidth, and a second dataframe from a second ONU is detected within the first time window, thesecond ONU having not completed registration.

In an embodiment, in the present embodiment, the storage medium may befurther configured to store a computer program for performing thefollowing steps.

In step S1, a first partial bandwidth allocated by an OLT is acquired.

In step S2, a first data frame is sent to the OLT within the firstpartial bandwidth, and a second data frame is sent to the OLT whenpreset conditions are met, the first data frame being a service dataframe sent by an ONU that has completed registration and is in a workingstate, and the second data frame being a registration signal frame sentby an ONU that has not completed registration.

In an embodiment, in the present embodiment, the storage medium mayinclude, but is not limited to, various media capable of storing acomputer program such as a U disk, a ROM, a RAM, a mobile hard disk, amagnetic disk or an optical disc.

Embodiment Four

The embodiment of the present disclosure also provides an electronicdevice. The electronic device includes a memory and a processor. Thememory stores a computer program. The processor is configured to run thecomputer program to perform the steps in any one of the above methodembodiments.

In an embodiment, the electronic device may further include atransmission device and an input-output device. The transmission deviceis connected to the processor, and the input-output device is connectedto the processor.

In an embodiment, in the present embodiment, the processor may beconfigured to use the computer program to perform the following steps.

In step S1, a first partial bandwidth is allocated to a first ONU withina first time window, the first ONU having completed registration andbeing in a working state.

In step S2, a first data frame from the first ONU is received within atime corresponding to the first partial bandwidth, and a second dataframe from a second ONU is detected within the first time window, thesecond ONU having not completed registration.

In an embodiment, in the present embodiment, the processor may befurther configured to use the computer program to perform the followingsteps.

In step S1, a first partial bandwidth allocated by an OLT is acquired.

In step S2, a first data frame is sent to the OLT within the firstpartial bandwidth, and a second data frame is sent to the OLT whenpreset conditions are met, the first data frame being a service dataframe sent by an ONU that has completed registration and is in a workingstate, and the second data frame being a registration signal frame sentby an ONU that has not completed registration.

In an embodiment, a specific example in the present embodiment may referto the examples described in the above embodiments and optionalimplementation manners, and details are not described herein in thepresent embodiment.

It is apparent that a person skilled in the art shall understand thatall of the above-mentioned modules or steps in the present disclosuremay be implemented by using a general calculation device, may becentralized on a single calculation device or may be distributed on anetwork composed of multiple calculation devices. In an embodiment, theymay be implemented by using executable program codes of the calculationdevices. Thus, they may be stored in a storage device and executed bythe calculation devices, the shown or described steps may be executed ina sequence different from this sequence under certain conditions, orthey are manufactured into each integrated circuit module respectively,or multiple modules or steps therein are manufactured into a singleintegrated circuit module. Thus, the present disclosure is not limitedto the combination of any specific hardware and software.

The above is only the preferred embodiments of the present disclosure,not intended to limit the present disclosure. As will occur to thoseskilled in the art, the present disclosure is susceptible to variousmodifications and changes. Any modifications, equivalent replacements,improvements and the like made within the principle of the presentdisclosure shall fall within the scope of protection of the presentdisclosure.

What is claimed is:
 1. A data processing method for a Passive OpticalNetwork (PON) system, comprising: allocating a first partial bandwidthto a first Optical Network Unit (ONU) within a first time window,wherein the first ONU has completed registration and being in a workingstate; and receiving a first data frame from the first ONU within a timecorresponding to the first partial bandwidth, and detecting a seconddata frame from a second ONU within the first time window, wherein thesecond ONU has not completed registration, wherein the first data frameand the second data frame are transmitted over a same uplink wavelength.2. The method according to claim 1, wherein detecting the second dataframe from the second ONU within the first time window comprises:detecting the second data frame from the second ONU within a secondpartial bandwidth except the first partial bandwidth within the firsttime window.
 3. The method according to claim 2, further comprising:acquiring first distance information of the second ONU.
 4. The methodaccording to claim 3, wherein after acquiring the first distanceinformation of the second ONU, the method further comprises: opening asecond time window for the second ONU according to the first distanceinformation to complete registration of the second ONU, the second timewindow being used for acquiring authentication information of the secondONU, and measuring second distance information between an Optical LineTerminal (OLT) and the second ONU.
 5. The method according to claim 1,wherein receiving the first data frame from the first ONU within thetime corresponding to the first time window comprises: obtaining thefirst data frame by utilizing redundancy protection measures taken bythe first ONU on the first data frame.
 6. The method according to claim5, wherein receiving the first data frame from the first ONU within thetime corresponding to the first time window further comprises:obtaining, when the redundancy protection measures taken by the firstONU on the first data frame are utilized to identify that the first dataframe is in error, a collision position of the second data frame and thefirst data frame.
 7. The method according to claim 6, wherein afterobtaining the collision position of the second data frame and the firstdata frame, the method further comprises: allocating the first partialbandwidth within the subsequent first time window, the collisionposition being not contained in the time corresponding to the firstpartial bandwidth; and detecting the second data frame from the secondONU within the first time window, and positioning the collision positionagain.
 8. The method according to claim 6, wherein obtaining, when theredundancy protection measures are utilized to identify that the firstdata frame is in error, the collision position of the second data frameand the first data frame comprises: when detecting that the first dataframe is in error through a preset coding mode adopted by the first ONUfor a payload of the first data frame, recovering the first data frameand positioning the collision position, wherein a damage range of acollision between the second data frame and the first data frame iswithin an error correction range of a coding redundancy protection blockof the preset coding mode; or, wherein obtaining, when the redundancyprotection measures are utilized to identify that the first data frameis in error, the collision position of the second data frame and thefirst data frame comprises: when detecting the abnormality of a signalamplitude and/or a signal clock by performing signal amplitude detectionand signal clock recovery on a preamble lengthened by the first ONU,recovering the signal amplitude and/or the signal clock, and positioningthe collision position; or, wherein obtaining, when the redundancyprotection measures are utilized to identify that the first data frameis in error, the collision position of the second data frame and thefirst data frame comprises: when an error is detected from adelimitation lengthening changed by the first ONU, correctly identifyingat least one part of the delimitation, obtaining a position where thedelimitation is in error, positioning the collision position, andobtaining a starting position of a payload.
 9. The method according toclaim 5, wherein allocating the first partial bandwidth to the first ONUwithin the first time window further comprises: notifying the first ONUto take redundancy protection measures on the first data frame.
 10. Themethod according to claim 5, further comprising: acquiring firstdistance information of the second ONU.
 11. The method according toclaim 1, wherein before detecting the second data frame from the secondONU within the first time window, the method further comprises: sendinga registration request message to the second ONU, the registrationrequest message being used for notifying the second ONU to send thesecond data frame, and the registration request message at leastcarrying first authentication information.
 12. The method according toclaim 11, wherein before sending the registration request message to thesecond ONU, the method further comprises: storing authenticationinformation of the first ONU and the second ONU, so as to initiate aregistration process to the second ONU according to the authenticationinformation, wherein the authentication information comprise identityinformation of each ONU and/or identity information of an ONU user; or,wherein the registration request message further carries a delayduration for instructing the second ONU to send the second data frameafter waiting for the delay duration.
 13. A data processing method for aPassive Optical Network (PON) system, comprising: acquiring a firstpartial bandwidth allocated by an Optical Line Terminal (OLT); andsending a first data frame to the OLT within the first partialbandwidth, and sending a second data frame to the OLT when a presetcondition is met, the first data frame being a service data frame sentby an Optical Network Unit (ONU) that has completed registration and isin a working state, and the second data frame being a registrationsignal frame sent by an ONU that has not completed registration, whereinthe first data frame and the second data frame are transmitted over asame uplink wavelength.
 14. The method according to claim 13, whereinbefore sending the first data frame to the OLT within the first partialbandwidth, the method further comprises: acquiring a notification fromthe OLT that redundancy protection measures are taken on the first dataframe; and taking redundancy protection measures on the first dataframe.
 15. The method according to claim 14, wherein taking redundancyprotection measures on the first data frame comprises: coding a payloadin the first data frame by adopting a preset coding mode, a damage rangeof the second data frame being within an error correction range of acoding redundancy protection block of the preset coding mode; or,wherein taking redundancy protection measures on the first data framecomprises: lengthening a preamble in the first data frame to obtain alengthened preamble, the lengthened preamble being used for signalamplitude detection and signal clock recovery when the OLT generates acollision; or, wherein taking redundancy protection measures on thefirst data frame comprises: performing a lengthening change on adelimitation in the first data frame to obtain a lengtheneddelimitation, the lengthening changed delimitation being used foridentifying at least one part of the delimitation when the OLT generatesa collision, and the delimitation being used for identifying a startingposition of the first data frame by the OLT.
 16. The method according toclaim 13, wherein sending the second data frame to the OLT when thepreset conditions are met comprises one of the following: activelysending, by a second ONU, the second data frame to the OLT; sending, bythe second ONU, the second data frame after obtaining a registrationrequest message sent by the OLT; and sending, by the second ONU, thesecond data frame after obtaining a registration request message and adelay duration sent by the OLT and then waiting for the delay duration.17. A data processing apparatus for a Passive Optical Network (PON)system, comprising: an allocation module, configured to allocate a firstpartial bandwidth to a first Optical Network Unit (ONU) within a firsttime window, the first ONU having completed registration and being in aworking state; and a processing module, configured to receive a firstdata frame from the first ONU within a time corresponding to the firstpartial bandwidth, and detect a second data frame from a second ONUwithin the first time window, the second ONU having not completedregistration, wherein the first data frame and the second data frame aretransmitted over a same uplink wavelength.
 18. The apparatus accordingto claim 17, wherein the processing module is configured to detect thesecond data frame from the second ONU within a second partial bandwidthexcept the first partial bandwidth within the first time window; or,wherein the processing module is configured to obtain the first dataframe by utilizing redundancy protection measures taken by the first ONUon the first data frame.
 19. The apparatus according to claim 18,wherein the processing module is further configured to obtain, when theredundancy protection measures taken by the first ONU on the first dataframe are utilized to identify that the first data frame is in error, acollision position of the second data frame and the first data frame.20. The apparatus according to claim 19, further comprising: apositioning module, configured to allocate the first partial bandwidthwithin the subsequent first time window, the collision position beingnot contained in the time corresponding to the first partial bandwidth;and detect the second data frame from the second ONU within the firsttime window, and position the collision position again; an acquisitionmodule, configured to acquire first distance information of the secondONU; a registration module, configured to open a second time window forthe second ONU according to the first distance information to completeregistration of the second ONU, the second time window being used foracquiring authentication information of the second ONU, and measuringsecond distance information between an Optical Line Terminal (OLT) andthe second ONU.